Component({
    options: {
        multipleSlots: !0
    },
    externalClasses: [ "title-class" ],
    properties: {
        isFirstFold: {
            type: Boolean,
            value: !0
        },
        lrpd: {
            type: Number,
            value: 30
        },
        arrowDirection: {
            type: String,
            value: "right"
        }
    },
    data: {
        isFold: !1,
        contentHeight: "auto"
    },
    ready: function() {
        this.initHeight(this.properties.isFirstFold);
    },
    methods: {
        initHeight: function(t) {
            var e = this;
            return new Promise(function(i, n) {
                wx.createSelectorQuery().in(e).select("#content").boundingClientRect(function(n) {
                    var o = n.height;
                    e.$contentHeight = o + "px", e.setData({
                        isFold: t,
                        contentHeight: t ? "0" : e.$contentHeight
                    }), i();
                }).exec();
            });
        },
        pointTap: function(t) {
            this.setData({
                isFold: !this.data.isFold,
                contentHeight: this.data.isFold ? this.$contentHeight : "0"
            });
        },
        update: function() {
            var t = this;
            this.setData({
                contentHeight: "auto"
            }), setTimeout(function() {
                t.initHeight(t.data.isFold);
            }, 50);
        }
    }
});